package com.jeespring.user.dao;

import com.jeespring.user.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {

    /**
     *
     */
    List<User> select(User user);

    /**
     *
     */
    User selectOne(User user);

    /**
     *
     */
    List<User> selectList();

    /**
     *
     */
    List<User> selectAll();
    
    /**
     *
     */
    User selectByPrimaryKey(Long id);

    /**
     *
     */
    int insert(User user);

    /**
     *
     */
    int updateByPrimaryKey(User user);

    /**
     *
     */
    int deleteByPrimaryKey(Long id);
}